package com.lsp.server.product.mapper;

import com.lsp.server.product.domain.po.ProductBrand;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName BrandMapper
 * @Description 品牌管理持久层
 * @Author Mr Hao
 * @Date 2021/11/25 16:11
 */
@Mapper
public interface BrandMapper {
    @Select("select * from product_brand where status = 50")
    List<ProductBrand> getBrand();

    @Insert("insert into product_brand (name,img,brand_date,create_date,status) value (#{name},#{img},#{brandDate},#{createDate},50)")
    void addBrand(ProductBrand form);
}
